package com.gxa.finance.feign;

import com.gxa.common.commons.R;
import com.gxa.common.pojo.FinancePayment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient(value = "cnousen-client-finance",path = "/finance")
public interface ServiceFinanceApi {
    //分页查询预付款审核接口
    @GetMapping("/payment/payPage")
    R payPage(@RequestParam(value ="currentPage" ) Integer currentPage, @RequestParam(value = "pageSize") Integer pageSize);

    //人工判断预审核通过操作接口
    @PostMapping("/audit")
    R audit(@RequestBody FinancePayment financePayment);

    //收款账户添加金额
    @PostMapping(value = "/collectionAccount/updateAccountMoney")
    R updateAccountMoney(BigDecimal accountMoney);


    //添加服务订单信息到延迟队列
    @GetMapping(value = "/pay/cleanOrderLimit")
    void cleanOrderLimit(@RequestParam(value = "cleanOrderNumber") String cleanOrderNumber,@RequestParam(value = "orderType") Integer orderType);


    //添加住宿订单信息到延迟队列
    @GetMapping(value = "/pay/hotelOrderLimit")
    void hotelOrderLimit(@RequestParam(value = "orderNumber")String orderNumber,@RequestParam(value = "orderType")Integer orderType);

}
